package com.njtoyo.taxi.admin.rest.wrapper.data.data_analysis;

import com.njtoyo.taxi.admin.mapper.master.enums.RankListParentType;
import com.njtoyo.taxi.admin.mapper.master.enums.RankListTimeRangeType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("排名统计")
public class RankListWrapper {
    @ApiModelProperty("地区ID")
    private Long cantonId;

    @ApiModelProperty("公司ID")
    private Long companyId;

    @ApiModelProperty("类型，customize为自定义开始结束时间yyyy-MM")
    private RankListTimeRangeType timeType;

    @ApiModelProperty("开始时间，精确到月，例如`2021-03`，dateGroupType为customize时必填")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date startTime;

    @ApiModelProperty("结束时间，精确到月，例如`2021-03`，dateGroupType为customize时必填")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date endTime;

    @ApiModelProperty("展开-父级类型")
    private RankListParentType parentType;

    @ApiModelProperty("父级ID")
    private Long parentId;

}
